from loguru import logger

# 更详细配置的文件处理器
logger.add(
    sink="./log/app_{time}.log",
    format="[{time:YYYY-MM-DD HH:mm:ss:SSS}] [{level}] {message}",
    level="INFO",
    rotation="10 MB",
    retention="7 days",
    compression="zip",
    backtrace=True,
    diagnose=True
)

MODEL_PATH = "/home/app/data/modelscope/model"
TOKEN_KEY = "token-abc123"
UPLOAD_PATH = "uploads"
HOST = "0.0.0.0"
PORT = 8888